package cn.samler.diandi.api.service;

import cn.samler.diandi.api.entity.Post;
import cn.samler.diandi.api.entity.PostComment;
import cn.samler.diandi.api.model.io.Response;
import cn.samler.diandi.api.model.io.request.post.Nearby;
import cn.samler.diandi.api.model.io.request.post.PostCommentList;
import cn.samler.diandi.api.model.io.request.pub.Page;
import cn.samler.diandi.api.model.io.request.post.Publish;
import cn.samler.diandi.api.model.io.request.post.Search;

public interface PostService {
    Response list(Page form);
    Response nearby(Nearby form);
    Response search(Search form);
    Response findById(Integer id);
    Response publish(Publish form);
    Response update(Post form);
    Response remove(Integer id);
    Response display(Integer id, boolean display);

    Response listComment(PostCommentList form);
    Response publishComment(PostComment form);
}
